package models.issue;

import models.UUIDModel;
import models.user.User;

import javax.persistence.*;

/**
 * Created by LiuBin on 2017/2/4.
 */
@Entity
@Table(name = "issues_img")
public class IssueImg extends UUIDModel {
    /**
     * 报修人员
     */
    @JoinColumn(name = "issue_id")
    @ManyToOne
    public Issue issue;

    /**
     * 图片地址
     */
    @Column(name = "img_src", length = 200)
    public String imgSrc;

    /**
     * 图片地址
     */
    @Column(name = "img_Order", length = 20)
    public Integer imgOrder;

    public IssueImg() {super();};

    public IssueImg(Issue issue,String imgSrc,Integer imgOrder) {
        this.issue = issue;
        this.imgSrc = imgSrc;
        this.imgOrder = imgOrder;
    }
}
